//
//  Collection.h
//  MHO
//
//  Created by papo on 3/13/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Collection : NSObject
@property (nonatomic, strong) NSString* userEmail;
@property (nonatomic, strong) NSNumber* colletionId;
@property (nonatomic, strong) NSString* collectionName;
@property (nonatomic, strong) NSString* _description;
@property (nonatomic, strong) NSNumber* views;

+ (NSArray*)getCollectionFromUrl:(NSString*)url;

+ (NSArray*)getCollectionFromUrl:(NSString*)url addFavorite:(BOOL)add;

+ (void)updateCollection:(Collection*)collection type:(NSInteger)type;

+ (void)deleteCollection:(Collection*)collection;
+ (void)updateCollection:(Collection *)collection;
+ (void)createNewCollection:(Collection*)collection;

- (id)initWithDictionary:(NSDictionary*)dict;
@end
